import request from '@/utils/request'

export function dept(pid) {
  return request({
    url: `/api/crm/dept?${pid}size=100`,
    method: 'get'
  })
}

export function findById(id) {
    return request({
      url: `/api/crm/dept/findById?id=${id}`,
      method: 'get'
    })
  }

export function AddDept(type,data) {
    return request({
      url: `/api/crm/dept`,
      method: type,
      data:data
    })
  }